import type { ProfileParams } from '@/types/member'
import { http } from '@/utils/http'

//获取用户信息
export const getUserInfoAPI = () => {
  return http<ProfileParams>({
    method: 'GET',
    url: '/member/profile',
  })
}

//修改用户信息
export const updateUserInfoAPI = (params?: ProfileParams) => {
  return http({
    method: 'PUT',
    url: '/member/profile',
    data: params,
  })
}
